package com.xbfinal.reggie.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@Slf4j
@Controller
public class SystemController {


    @GetMapping("/")
    public void tologin(HttpServletResponse response) throws IOException {
        log.info("进入@GetMapping(\"/\")");
        //Redirect
        response.sendRedirect("/backend/page/login/login.html");
        log.info("执行重定向");

    }

}
